﻿using Abp.Events.Bus;

namespace NetCore.Events
{
    /// <summary>
    /// 根据key移除Redis Cache事件
    /// </summary>
    public class RemoveCacheEvent : EventData
    {
        public RemoveCacheEvent(string cacheName, string key = "")
        {
            CacheName = cacheName;
            Key = key;
        }
        /// <summary>
        /// 缓存组名
        /// </summary>
        public string CacheName { get; set; }
        /// <summary>
        /// 缓存键Key
        /// </summary>
        public string Key { get; set; }
    }
}
